import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

import 'network_page_state.dart';

class NetworkPageView extends NetworkPageState {
  @override
  destroyData() {}

  @override
  initData() {}

  @override
  Widget setPageContent(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        centerTitle: true,
        title: const Text(
          "网络请求案例",
        ),
      ),
      body: SafeArea(
        child: ListView(
          children: [
            TextButton(
              child: const Text("请求"),
              onPressed: click,
            ),
            Text(netData),
          ],
        ),
      ),
    );
  }
}
